<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<script src="http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Src-Projector</title>
</head>
<body class="yui3-skin-sam">

	<div id="mainview" class="yui3-g">
	 
		<div id="treeview" class="yui3-u">
			<div id="tree">
				<!-- treeview -->
			</div>					
		</div>
		
		<div id="pageview" class="yui3-u">
			<div id="page">
				<!-- page content -->				
			</div>	
		</div>
		
	</div>
		
	<script type="text/javascript">	
	//<![CDATA[
 		YUI({
 			charset: 'utf-8',
 			loadOptional: true,
 			combine: true,
 			filter: 'min',
 			timeout: 10000,
		    modules: {
				treeview: {
				    fullpath: '../src/main/webapp/js/treeview.js',
				    requires: ['view', 'io-base', 'json-parse']
			    },
				pageview: {
				    fullpath: '../src/main/webapp/js/pageview.js',
				    requires: ['view', 'io-base', 'tabview']
			    },
			    mainmodel: {
				    fullpath: '../src/main/webapp/js/mainmodel.js',
				    requires: ['model']
			    },			    
			    mainview: {
				    fullpath: '../src/main/webapp/js/mainview.js',
				    requires: ['view', 'event-resize', 'treeview', 'pageview']
			    },
				srcprojectorcss: {
				    fullpath: '../src/main/webapp/css/srcprojector-core.css',
				    type: 'css'
			    },
				srcprojectorcssskin: {
				    fullpath: '../src/main/webapp/css/skin/dev/srcprojector-dev.css',
				    type: 'css',
				    requires: ['srcprojectorcss']
			    },			    
				srcprojector: {
				    fullpath: '../src/main/webapp/js/srcprojector.js',
				    requires: ['srcprojectorcssskin', 'base', 'io-base', 'io-xdr', 'json-parse', 'mainmodel', 'mainview']
			    },			    
		    },
 			onProgress: function (a) {
 				//console.dir(a);
 			},
 			onFailure: function (e) {
 				alert('failure');
 			},
 			onSuccess: function () {
 				//alert('load success');
 			},
 			onTimeout: function () {
 				
 			}
 		}).use('cssbase', 'cssreset', 'cssfonts', 'cssgrids',
 				'yui2-logger', 'yui2-treeview',
 				'srcprojector', function(Y) {
 		    
 			var srcProjector = new Y.srcprojector.SrcProjector({appPath: 'test1/test2/'});
 			
			
 		});
 	//]]>	
	</script>

</body>
</html>